From 4482ab5c8761b09ff70a825baade2539d2987fb0 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Tue, 13 Sep 2005 15:46:20 +0100 Subject: [PATCH] Fix the check that the argument count is even, for xenstore_write. --- tools/xenstore/xenstore_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 842aca33fe..28be87859b 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -77,7 +77,7 @@ main(int argc, char **argv) /* NOTREACHED */ } #if defined(CLIENT_write) - if ((argc - optind) % 1) { + if ((argc - optind) % 2 == 1) { usage(argv[0]); /* NOTREACHED */ } -- 2.30.2